package com.bstek.uflo.form.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.Table;

/**
 * @author Jacky.gao
 * @since 2013年11月5日
 */
@Entity
@Table(name="UFLO_FORM")
public class Form {
	@Id
	@Column(name="ID_")
	private long id;
	@Column(name="NAME_",length=60,nullable=false)
	private String name;
	@Column(name="CATEGORY_ID_",length=60)
	private String categoryId;
	@Column(name="CREATE_DATE_")
	private Date createDate;
	@Lob
	@Column(name="CONTENT_",length=1024000)
	private byte[] content;
	@Column(name="TABLE_ID_")
	private long tableId;
	@Column(name="UPDATE_DATE_")
	private Date updateDate;
	public long getId() {
		return id;
	}
	public void setId(long id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getCategoryId() {
		return categoryId;
	}
	public void setCategoryId(String categoryId) {
		this.categoryId = categoryId;
	}
	public Date getCreateDate() {
		return createDate;
	}
	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}
	public byte[] getContent() {
		return content;
	}
	public void setContent(byte[] content) {
		this.content = content;
	}
	public long getTableId() {
		return tableId;
	}
	public void setTableId(long tableId) {
		this.tableId = tableId;
	}
	public Date getUpdateDate() {
		return updateDate;
	}
	public void setUpdateDate(Date updateDate) {
		this.updateDate = updateDate;
	}
}
